package red.internal.server.registry.handler;

import io.netty.channel.Channel;
import red.internal.core.message.RegistryMessage;
import red.internal.server.registry.channel.NotifyCache;

/**
 * @author Jin Zheng
 * @since 2020-07-19
 */
public class NotifyRegistryHandler implements RegistryHandler
{
	private final NotifyCache notifyCache = NotifyCache.getInstance();

	public NotifyRegistryHandler()
	{
	}

	@Override
	public void handle(RegistryMessage message, Channel channel)
	{
		notifyCache.remove(message.getMessageId());
	}
}
